package com.kunlun.basedata.dao;

import com.kunlun.basedata.model.UserModel;
import com.kunlun.common.model.Page;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface IUserDao {

    List<UserModel> getAllUser(Map<String, Object> queryMap) throws Exception;

    int getUsersCount(Map<String, Object> queryMap) throws Exception;

    void addUser(UserModel user) throws Exception;

    void updateUser(UserModel user) throws Exception;

    void batchDeleteUser(List<String> ids) throws Exception;

    UserModel getUserByUserName(@Param("userName") String userName) throws Exception;

    UserModel getUserById(String userId) throws Exception;

    List<UserModel> selectUsers() throws Exception;
}
